package com.gzdh.tang.config.weixin;

import org.springframework.beans.factory.annotation.Value;

/**
 * 微信支付的工具类
 */
public class WXPayUtils {
    //公众号的appid
    private static String appid;

    private static String mchId;
    private static String subMchId;
    private static String subAppid;
    private static String keys;
    private static String refundNotifyUrl;


    private static String privateKey;

    private static String merchantSerialNumber;

    private static String apiV3Key;

    private static String merchantPublicKey;

    private static String merchantPublicKeyId;

    private static String prefix;

    public static String getRefundNotifyUrl() {
        return refundNotifyUrl;
    }

    public static void setRefundNotifyUrl(String refundNotifyUrl) {
        WXPayUtils.refundNotifyUrl = refundNotifyUrl;
    }

    private static int submchMode;

    public static int getSubmchMode() {
        return submchMode;
    }

    public static void setSubmchMode(int submchMode) {
        WXPayUtils.submchMode = submchMode;
    }

    public static String getAppid() {
        return appid;
    }

    public static void setAppid(String appid) {
        WXPayUtils.appid = appid;
    }

    public static String getMchId() {
        return mchId;
    }

    public static void setMchId(String mchId) {
        WXPayUtils.mchId = mchId;
    }

    public static String getSubMchId() {
        return subMchId;
    }

    public static void setSubMchId(String subMchId) {
        WXPayUtils.subMchId = subMchId;
    }

    public static String getSubAppid() {
        return subAppid;
    }

    public static void setSubAppid(String subAppid) {
        WXPayUtils.subAppid = subAppid;
    }

    public static String getKeys() {
        return keys;
    }

    public static void setKeys(String keys) {
        WXPayUtils.keys = keys;
    }

    public static void initWxPay() {

    }

    public static String getPrivateKey() {
        return privateKey;
    }

    public static void setPrivateKey(String privateKey) {
        WXPayUtils.privateKey = privateKey;
    }

    public static String getMerchantSerialNumber() {
        return merchantSerialNumber;
    }

    public static void setMerchantSerialNumber(String merchantSerialNumber) {
        WXPayUtils.merchantSerialNumber = merchantSerialNumber;
    }

    public static String getApiV3Key() {
        return apiV3Key;
    }

    public static void setApiV3Key(String apiV3Key) {
        WXPayUtils.apiV3Key = apiV3Key;
    }

    public static String getMerchantPublicKey() {
        return merchantPublicKey;
    }

    public static void setMerchantPublicKey(String merchantPublicKey) {
        WXPayUtils.merchantPublicKey = merchantPublicKey;
    }

    public static String getMerchantPublicKeyId() {
        return merchantPublicKeyId;
    }

    public static void setMerchantPublicKeyId(String merchantPublicKeyId) {
        WXPayUtils.merchantPublicKeyId = merchantPublicKeyId;
    }

    public static String getPrefix() {
        return prefix;
    }

    public static void setPrefix(String prefix) {
        WXPayUtils.prefix = prefix;
    }
}
